import request from '@/utils/request'

export function getVipPrice(params) {
    return request({
        url: '/api/payItem/getList',
        method: 'get',
        params
    })
}

export function getMine() {
    return request({
        url: '/api/user/mine',
        method: 'post'
    })
}

export function getZhifubao(price,goodName,type) {
    return request({
        url: '/api/v2/alipay/pcPay',
        method: 'post',
        data: {
            totalAmount: price,
            subject: goodName,
            itemId: type,
        }
    })
}

export function getGongzhonghaoUrl(offiaccountOpenid,itemId) {
    return request({
        url: '/api/pay/wxOffiaccountQrCode',
        method: 'post',
        data: {
            offiaccountOpenid: offiaccountOpenid,
            itemId: itemId
        }
    })
}



export function getLastOrderPayStatus(plat) {
    return request({
        url: '/api/v2/order/getLastOrderPayStatus',
        method: 'post',
        data: {
            payPlatform: plat
        }
    })
}
